package com.fangs.yehwangglobal.net.rx;

/**
 * Created by caih on 2018/4/12.
 * Rx执行的任务
 * R 返回值泛型
 */
public abstract class MyRxTask<R> {

    private R r;

    public MyRxTask() {

    }

    public R getR() {
        return r;
    }

    public void setR(R r) {
        this.r = r;
    }

    public abstract R doInIOThread();//耗时

    public abstract void doInUIThread(R r);

}
